﻿using Dapper;
using System;

namespace HDLogCenter.Infrastructure.Models
{
    [Table("alert_rule")]
    public class AlertRuleModel
    {
        [Key]
        [Column("id")]
        public long Id { get; set; }

        [Column("app_code")]
        public string ProjectCode { get; set; } = string.Empty;

        [Column("log_level")]
        public byte LogLevel { get; set; }

        [Column("threshold_count")]
        public int ThresholdCount { get; set; }

        [Column("time_window")]
        public int TimeWindow { get; set; }

        [Column("notify_type")]
        public string NotifyType { get; set; }

        [Column("is_enabled")]
        public byte IsEnabled { get; set; }

        [Column("create_time")]
        public DateTime CreateTime { get; set; }

        [Column("update_time")]
        public DateTime UpdateTime { get; set; }
    }
}
